package com.example.wjh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("announcement")
public class Announcement implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private int id;//公告id
    private String title;//公告标题
    private String content;//公告内容
    private Date publishtime;//开始日期
    private Date expirytime;//结束日期
}
